package com.liuwa.knowledge.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.liuwa.common.annotation.*;
import com.liuwa.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 模块对象 k_module
 * 
 * @author liuwa
 * @date 2025-04-03 08:31:16
 */
@Dict(name = "模块")
@ApiModel(description = "模块对象")
public class Module extends BaseEntity<Integer>{

    private static final long serialVersionUID = 1L;

    /** 模块名称 */
    @Excel(name = "模块名称", sort=0)
    @ApiModelProperty(name="name", required = true, value="模块名称")
    private String name;

    /** 模块标题 */
    @Excel(name = "模块标题", sort=10)
    @ApiModelProperty(name="title", required = true, value="模块标题")
    private String title;

    /** 教材 */
    @Excel(name = "教材", dictType = "sys_entity_book", sort=20)
    @ApiModelProperty(name="bookId", required = true, value="教材")
    private Integer bookId;

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    

    public void setBookId(Integer bookId) 
    {
        this.bookId = bookId;
    }

    public Integer getBookId() 
    {
        return bookId;
    }
    



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("title", getTitle())
            .append("bookId", getBookId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
